<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home Page</title>
<style type="text/css">
body{
	color: #000;
	font-size: 14px;
	margin: 20px auto;
}
</style>

<script type="text/javascript">
	function check(form) {
		if(document.forms.loginForm.un.value=="") {
			alert("Please input user name!");
			document.forms.loginForm.un.focus();
			return false;
		}
		
		if(document.forms.loginForm.pw.value=="") {
			alert("Please input password!");
			document.forms.loginForm.pw.focus();
			return false;
		}
	}
</script>
</head>
<body>
	<form method="post" action="LoginServlet" name="loginForm">
		<center>
			<table border="1" cellpadding="3">
				<thead>
					<tr>
						<th colspan="2" align="center" bgColor="#E8E8E8">Login Here</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>User Name</td>
						<td><input type="text" name="un" /></td>
					</tr>
					<tr>
						<td>Password</td>
						<td><input type="password" name="pw" /></td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" value="Login" onClick="return check(this);" />
							<input type="reset" value="Reset" />
						</td>
					</tr>
					<tr>
						<td colspan="2">Yet Not Registered!! <a href="reg.jsp">Register
								Here</a></td>
					</tr>
				</tbody>
			</table>
		</center>
	</form>
</body>
</html>